﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.Entity.ModelConfiguration;
using CarErp.Model;

namespace CarErp.Data.Mappings
{
	public class UserMapping : EntityTypeConfiguration<User>
	{
		public UserMapping()
		{
			this.Id(x => x.Id);
			this.Text(x => x.Name, 20);
			this.Text(x => x.Password, 20);
			Property(x => x.Role).IsRequired();
		}
	}
}
